package com.dt.dubai.sys.entity;

import com.dt.dubai.core.comm.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.*;

import javax.persistence.Table;
import javax.validation.constraints.*;


/*
 * 用户组织关系表
 */

@Data
@Table(name = "dt_sys_admin_department")
@EqualsAndHashCode(callSuper = false)
public class SysAdminDepartmentEntity extends BaseEntity {

    //用户登录记录ID
    @NotNull(message = "adminLoginRecordId参数不能为空")
    Long adminLoginRecordId;

    //部门记录ID
    @NotNull(message = "deptRecordId参数不能为空")
    Long deptRecordId;

    //公司用户记录ID
    @NotNull(message = "companyLoginRecordId参数不能为空")
    Long companyLoginRecordId;


}
